QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    btosg.cpp \
    followupdater.cpp \
    gameworld.cpp \
    main.cpp \
    mainwindow.cpp

HEADERS += \
    OsgQtWidget.h \
    btosg.h \
    btosgHUD.h \
    btosgVehicle.h \
    followupdater.h \
    gameworld.h \
    mainwindow.h

FORMS += \
    mainwindow.ui









INCLUDEPATH += E:/bullet3/physicalEngine/include
#DEPENDPATH += E:/bullet3/physicalEngine/include
LIBS += -LE:/bullet3/physicalEngine/lib/Debug/
LIBS += E:/bullet3/physicalEngine/lib/osgbCollision.lib
    LIBS += E:/bullet3/physicalEngine/lib/osgbCollisiond.lib

    LIBS += E:/bullet3/physicalEngine/lib/osgbDynamicsd.lib
    LIBS +=  E:/bullet3/physicalEngine/lib/osgbInteractiond.lib
DEFINES += NOMINMAX

CONFIG(debug, debug|release){
    LIBS += -lBullet2FileLoader_Debug
    LIBS += -lBullet3Collision_Debug
    LIBS += -lBullet3Common_Debug
    LIBS += -lBullet3Dynamics_Debug
    LIBS += -lBullet3Geometry_Debug
    LIBS += -lBullet3OpenCL_clew_Debug
    LIBS += -lBulletCollision_Debug
    LIBS += -lBulletDynamics_Debug
    LIBS += -lBulletExampleBrowserLib_Debug
    LIBS += -lBulletFileLoader_Debug
    LIBS += -lBulletInverseDynamics_Debug
    LIBS += -lBulletInverseDynamicsUtils_Debug
    LIBS += -lBulletRobotics_Debug
    LIBS += -lBulletSoftBody_Debug
    LIBS += -lBulletWorldImporter_Debug
    LIBS += -lBulletXmlWorldImporter_Debug
    LIBS += -lBussIK_Debug
    LIBS += -lclsocket_Debug
    LIBS += -lConvexDecomposition_Debug
    LIBS += -lGIMPACTUtils_Debug
    LIBS += -lgtest_Debug
    LIBS += -lgwen_Debug
    LIBS += -lHACD_Debug
    LIBS += -lLinearMath_Debug
    LIBS += -lOpenGLWindow_Debug




}



INCLUDEPATH += E:/mymachinework/OSG3.4.1_vs2017_x64/include
DEPENDPATH += E:/mymachinework/OSG3.4.1_vs2017_x64/include

DEFINES += NOMINMAX

CONFIG(debug, debug|release){

    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgQtd.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgQt5d.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgWidgetd.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgViewerd.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgGAd.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgTextd.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgDBd.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgUtild.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgd.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgShadowd.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/OpenThreadsd.lib
    LIBS += E:/mymachinework/OSG3.4.1_vs2017_x64/lib/osgAnimationd.lib
}
else{
    LIBS += $(OSG_FILE)/lib/osgQt.lib
    LIBS += $(OSG_FILE)/lib/osgWidget.lib
    LIBS += $(OSG_FILE)/lib/osgViewer.lib
    LIBS += $(OSG_FILE)/lib/osgGA.lib
    LIBS += $(OSG_FILE)/lib/osgText.lib
    LIBS += $(OSG_FILE)/lib/osgDB.lib
    LIBS += $(OSG_FILE)/lib/osgUtil.lib
    LIBS += $(OSG_FILE)/lib/osg.lib
    LIBS += $(OSG_FILE)/lib/osgShadow.lib
    LIBS += $(OSG_FILE)/lib/OpenThreads.lib
}



#INCLUDEPATH += /usr/local/include

#INCLUDEPATH += /usr/local/include/BulletDynamics
#INCLUDEPATH += /home/victor/tests/MathFunies
#INCLUDEPATH += /usr/local/include/bullet


#unix|win32: LIBS += -L"/usr/local/lib" -losg -losgGA -losgAnimation -losgDB -losgViewer -losgWidget -losgUtil -losgSim -losgUI -losgShadow -losgSim \
#                    -losgManipulator  -losgFX -losgPresentation -lBulletCollision -lBulletDynamics -lLinearMath -lBulletSoftBody -lBulletInverseDynamics \
#                    -lBullet3Common -lBullet3Geometry -lBullet3Collision -lBullet3Dynamics -lBullet2FileLoader -lBulletInverseDynamicsUtils -lBulletWorldImporter

##LIBS += -L"/usr/local/lib"
#LIBS += -L"/usr/local/lib64" -losgQt5
##-lBulletCollision -lBulletDynamics -lLinearMath

#LIBS += -L"/home/victor/tests/build-MathFunies-Desktop_Qt_5_15_2_GCC_64bit-Debug" -lMathFunies





# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    CMakeLists.txt
